<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:t="http://myfaces.apache.org/tomahawk"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:owl="http://onto.agh.edu.pl/owl"
    template="templates/body_template.xhtml">

    <ui:define name="css">
    </ui:define>

    <ui:define name="scripts">
    </ui:define>

    <ui:define name="page_title">
			Test Ontology
    </ui:define>

    <ui:define name="hdr_logo">
        <!-- TODO dodac logo agh  albo iisg -->
        <!--<img id="logo" width="54" height="30""/>-->
    </ui:define>

    <ui:define name="hdr_title">
        <a4j:form style="">
            <div class="wrapper_search">
                <h:inputText value="#{ontologyMBean.search}" action="#{ontologyMBean.processSearch}" styleClass="search"/>
            </div>
            <h:commandLink value="Search" styleClass="search"/>
        </a4j:form>
    </ui:define>

    <ui:define name="hdr_info" />

    <ui:define name="navcenter"/>

    <ui:define name="navright">

    </ui:define>


    <ui:define name="content">
        <a4j:form>
            <div id="left">
                <h:outputText value="Ontologie"/>
                <br/>
                <br/>
                <a4j:repeat value="#{ontologyMBean.ontologies}" var="onto">
                    <t:div styleClass="result">
                        <h2>
                            <a4j:commandLink value="#{onto.name}" action="#{browserMBean.resetAction}">
                                <a4j:actionparam  name="ontologyId" assignTo="#{ontologyMBean.ontologyId}" value="#{onto.id}"
                                                  actionListener="#{ontologyMBean.selectOntologyActionListener}"/>
                            </a4j:commandLink>
                        </h2>

                        <h:outputText value="Description:" styleClass="bld"/>
                        <t:div styleClass="idnt">
                            <h:outputText value="#{onto.desc}"/>
                        </t:div>

                        <a4j:commandLink value="Show" styleClass="addr"/>
                    </t:div>
                </a4j:repeat>
            </div>

        </a4j:form>
    </ui:define>
    <ui:define name="bottomLinks">
        <h:form id="links">
            <h:commandLink id="prev"  styleClass="a_prev_on" />
            <div style="float:left">
                <h:commandLink id="A" value="A" />|
                <h:commandLink id="B" value="B" />|
                <h:commandLink id="C" value="C" />|
                <h:commandLink id="D" value="D" />
            </div>
            <h:commandLink id="next"  styleClass="a_next_on"/>
        </h:form>
    </ui:define>

</ui:composition>

